<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo site_url('static/style/css/style.css');?>" />
<title>无标题文档</title>
</head>

<body>
<table width="95%" border="0" cellspacing="0">
  <tr>
    <td>
    <h3>奖项列表</h3>
    <input type="button" value="添加奖品"  onclick="window.location='<?php echo base_url('adminroot/product/addproduct');?>'"/>
    </td>
  </tr>
  <tr>
    <td height="76" valign="top">
    <table width="100%" border="0" cellspacing="1" bgcolor="#CCCCCC" align="center">
      <tr align="center">
      	<td width="5%" bgcolor="#999999">ID</td>
        <td width="20%" height="31" bgcolor="#999999">奖品名称</td>
        <td width="10%" bgcolor="#999999">奖品类型</td>
        <td width="23%" bgcolor="#999999">简介</td>
        <td width="10%" bgcolor="#999999">&nbsp;</td>
      </tr>
      <?php foreach($list as $key => $value){ ?>
      <tr align="center">
      	<td height="34" bgcolor="#FFFFFF"><?=$value['id']?></td>
        <td height="34" bgcolor="#FFFFFF"><?=$value['productname']?></td>
        <td bgcolor="#FFFFFF"><?=getproducttype($value['ptype'])?></td>
        <td bgcolor="#FFFFFF"><?=$value['content']?></td>
        <td bgcolor="#FFFFFF">
        <a href="<?php echo site_url('adminroot/product/del_product/id/'.$value['id']);?>">删除</a>   
         <a href="<?php echo site_url('adminroot/product/edit_product/id/'.$value['id']);?>">修改</a>
        </td>
      </tr>
      <?php } ?>
	  <tr>
        <td height="34" colspan="5" align="center" bgcolor="#FFFFFF"><?php echo $page?></td>
        </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
